#include <gl\glew.h>
#include <gl\freeglut.h>

void ReshapeWindow (int width, int height)
{
	glViewport(0, 0, (GLsizei)width, (GLsizei)height);
	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	gluPerspective(60, (GLfloat)width / (GLfloat)height, 1.0, 100.0);
	glMatrixMode(GL_MODELVIEW);
}

void Display()
{
	glClearColor(0, 0, 0, 1.0f);
	glClear(GL_COLOR_BUFFER_BIT);
	glLoadIdentity();

	glTranslatef(0, 0, -20);
	glColor4f(1.0, 0.0, 0.0, 1.0);
	glutSolidTeapot(5);

	glutSwapBuffers();
}

int main(int argc, char **argv)
{
	glutInit(&argc, argv);
	glutInitDisplayMode(GLUT_DOUBLE);
	glutInitWindowSize(500, 500);
	glutInitWindowPosition(0, 0);
	glutCreateWindow("Drawing Setup");

	glutReshapeFunc(ReshapeWindow);
	glutDisplayFunc(Display);
	glutIdleFunc(Display);
	//glutMo

	glutMainLoop();

	return 0;
}